package com.winapi.winapiclientsdk;

import com.winapi.winapiclientsdk.client.WinapiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yyzhang
 * @version 1.0
 */
@Configuration
@ConfigurationProperties("winapi.client")
@ComponentScan
@Data
public class winapiClientConfig {
    private String accessKey;
    private String secretKey;

    @Bean
    public WinapiClient winapiClient(){
        return new WinapiClient(accessKey,secretKey);
    }
}
